<template>
  <div class="hello">
    <h1>{{ description + quantity + quantityunit}}</h1>
  </div>
</template>

<script>
export default {
  name: "HelloWorld",
  data() {
    return {
      description: "",
      quantity: "",
      quantityunit: ""
    };
  },
  props: {
    msg: String
  },
  created() {
    this.getDianFei();
    this.getLunBo();
  },
  methods: {
    getDianFei() {
      this.$axios({
        url:
          "/CloudPayment/user/getRoomState.do?payProId=1505&schoolcode=2453&businesstype=2&roomverify=3-2--73-321",
        method: "get"
      }).then(result => {
        console.log(result.data);
        this.description = result.data.description;
        this.quantity = result.data.quantity;
        this.quantityunit = result.data.quantityunit;
      });
    },
    getLunBo() {
      this.$axios({
        url: "http://www.liulongbin.top:3005/api/getlunbo",
        method: "get"
      }).then(result => {
        console.log(result.data);
      });
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
